<%@ page import="fassa.Evento" %>



<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'titulo', 'error')} required">
	<label for="titulo">
		<g:message code="evento.titulo.label" default="Titulo" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="titulo" required="" value="${eventoInstance?.titulo}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'areas', 'error')} ">
	<label for="areas">
		<g:message code="evento.areas.label" default="Areas" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${eventoInstance?.areas?}" var="a">
    <li><g:link controller="area" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="area" action="create" params="['evento.id': eventoInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'area.label', default: 'Area')])}</g:link>
</li>
</ul>

</div>

<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'dataFinal', 'error')} required">
	<label for="dataFinal">
		<g:message code="evento.dataFinal.label" default="Data Final" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataFinal" precision="day"  value="${eventoInstance?.dataFinal}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'dataFinalSubmissao', 'error')} required">
	<label for="dataFinalSubmissao">
		<g:message code="evento.dataFinalSubmissao.label" default="Data Final Submissao" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataFinalSubmissao" precision="day"  value="${eventoInstance?.dataFinalSubmissao}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'dataInicial', 'error')} required">
	<label for="dataInicial">
		<g:message code="evento.dataInicial.label" default="Data Inicial" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataInicial" precision="day"  value="${eventoInstance?.dataInicial}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'dataInicialSubmissao', 'error')} required">
	<label for="dataInicialSubmissao">
		<g:message code="evento.dataInicialSubmissao.label" default="Data Inicial Submissao" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataInicialSubmissao" precision="day"  value="${eventoInstance?.dataInicialSubmissao}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: eventoInstance, field: 'descricao', 'error')} ">
	<label for="descricao">
		<g:message code="evento.descricao.label" default="Descricao" />
		
	</label>
	<g:textField name="descricao" value="${eventoInstance?.descricao}"/>
</div>


